setContentInsetsRelative

open fun setContentInsetsRelative(contentInsetStart: Int, contentInsetEnd: Int)(source)

Sets the content insets for this toolbar relative to layout direction.

The content inset affects the valid area for Toolbar content other than the navigation button and menu. Insets define the minimum margin for these components and can be used to effectively align Toolbar content along well-known gridlines.

Parameters

contentInsetStart

Content inset for the toolbar starting edge

contentInsetEnd

Content inset for the toolbar ending edge

See also